package zsw.proxy.gdk;

import java.lang.reflect.Proxy;

public class TestgdkProxy {
	public static void main(String[] args) {
		ZSW d=new ZSW();
		GdkHandler handler=new GdkHandler(d);
		Person proxClass=(Person) Proxy.newProxyInstance(ZSW.class.getClassLoader(), ZSW.class.getInterfaces(), handler);
	    String name = proxClass.getName("zsw");
		System.out.println(name);
		//System.out.println(proxClass);
	}

}

